package com.cn.wxwinnie.java.recursion;

/**
 * @author 潇湘暮雨 E-mail:wxwinnie@hotmail.com
 * 
 * @version 创建时间：2014年3月13日 下午7:55:40
 * 
 */
public class Test2 {
	public static void main(String[] args) {
		String intNum = "1234349876908796";
		int count = 0;
		String res = "";
		for (int i = intNum.length()-1; i >= 0; i--) {
			count++;
			res = intNum.charAt(i) + res;
			if (count > 0 && count != intNum.length() && count % 3 == 0) {
				res = "," + res;		
			}
		}
		System.out.println(res);
	}
}
